package com.codi.bus.core.dao;

import com.codi.base.dao.v2.GeneratedBaseDao;
import com.codi.bus.core.domain.Profit;

import java.util.Date;
import java.util.List;

/**
 * 亲，写个类注释呗
 *
 * @author asus
 * @date 2018-04-18 13:41
 */
public interface ProfitDao extends GeneratedBaseDao<Profit> {
    List<Profit> selectAccumulateProfit(Profit profit);

    List<Profit> selectAccumulateProfitOneDay(String dateTime);

    List<Profit> selectProfit(Profit profit);

    List<Profit> selectProfitByFundCode(Integer userId, String tradeAcco, String fundCode, Date dateTime);

    List<Profit> selectNewProfit(Integer userId, String clientId, String tradeAcco, String fundCode);

    List<Profit> selectNewCreateProfit(Integer userId, String clientId, String tradeAcco, String fundCode);

    List<Profit> selectNewPortfolioProfit(Integer userId, String clientId, String DateTime);

    List<Profit> selectAllNewProfit(Integer userId, String clientId, String fundCode);

    List<Profit> selectFundCode(Integer userId, String clientId);

    List<Profit> selectAccumulateByFundCode(Integer userId, String tradeAcco, String fundCode, Date dateTime);

    List<Profit> selectZc(String dateTime);

    List<Profit> selectProfitByUserAndTime(Integer userId, String beginDate, String endDate);

    /**
     * 根据用户id和组合交易账号查询收益信息
     *
     * @param userId
     * @param tradeAcco
     * @return
     */
    List<Profit> selectProfitByUserIdAndTradeAcco(Long userId, String tradeAcco);

    int deleteByDateTime(String dateTime);

    int deleteByCreateTime(String createTime);
}
